chap10_2 VB Window Form1 MVIEW Command2 Command1 Display Contents Command1 Display topic 3 Command1 Display topic 2 Command1 Display topic 1 Label2 Label1 Last Viewer Action: Label1_Click! Form_Load MV1_Init hViewerInst vwrViewer) ViewerX ViewerY ViewerWidth ViewerHeight JumpRequested EndRequested; StartRequested VwrQuitF iVwrN Command2_Click chap10_2 Command1_Clickn IndexU Label2 Caption ViewerTitle< ViewerCommand ViewerExecute Width Screen Height! ScaleMode] TWIPS TwipHeight ScaleHeightc TwipWidth ScaleWidth PIXELS PixelHeight PixelWidthL MV1_EndJump TopicAddress ScrollPosition MV1_MinMax9 MinMaxState MV1_Size iWidth iHeight MV1_Term MV1_Activate GotFocus MV1_ActivateWin WinState WhichWindow MV1_EndConfig SecondaryWindow MV1_StartJump Printer| mvapi2.dll Command1_Click Jump requested CHAP10_2.MVB CHAP10_2.MVB contents topic_ Command2_Click end Viewerm end VB programi Form_Load set this window's size & position calculate Viewer window's size & position, in pixels PositionTopic( ,1,0) FileLoad CHAP10_2.MVB MV1_EndJump Jump to topic #,##0 CHAP10_2.MVB Back() MV1_MinMax CHAP10_2.MVB Size restored MV1_Size CHAP10_2.MVB Size restored MV1_Term CHAP10_2.MVB Restarted vwr Viewer restarted